{% extends "base.html" %}
{% block content %}

            <div id="discussions">
                <h3>Join the discussion</h3>
                <span class="discussion-type">{{ type }}</span>
                
                    {% for discussion in discussions %}
                <div class="discussion">
                    {% if discussion.imagelink %}<div class="discussion-image medium-image" style="display:none;"><img src="{{ document.imagelink }}" /></div>{% endif %}


                    <h3 class="discussion-title"><a href="/discussiontopics?discussion={{ discussion.key }}">{{ discussion.title }}</a><span class="discussion-topiccount"> ({{ discussion.topiccount }} posts)</span></h3>
                    <div class="discussion-description">{{ discussion.description }}</div><p>
                </div>
                {% endfor %}
            </div>
{% endblock %}